<?php
/**
 * Description of userKonsultanFormclass
 *
 * @author Destiya
 */
class userKonsultanForm extends konsultanForm {
    public function configure() {
        $this->useFields(array('id_user', 'id_bidang_studi'));

        $this->widgetSchema['id_user'] = new sfWidgetFormInputHidden();
        $this->widgetSchema['id_bidang_studi'] = new sfWidgetFormChoice(array(
            'choices'=>Doctrine_core::getTable('set_bidang_studi')->getBidangStudiList(),
            'expanded'=>false,
            'multiple'=>false,
            'label'=>'Bidang Studi'
        ));
        
    }

    public function setKonsultan($value) {
        $this->setDefault('id_user', $value);
    }
}
?>
